﻿using PARK.Common.Const;
using SqlSugar;
using System;

namespace PARK.Accessctl.Entitys
{
    /// <summary>
    /// 门禁设备
    /// </summary>
    [SugarTable("access_door")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class AccessDoorEntity
    {
        /// <summary>
        /// 门Id
        /// </summary>
        [SugarColumn(ColumnName = "doorId", IsPrimaryKey = true)]
        public string DoorId { get; set; }
        
        /// <summary>
        /// 控制器Id
        /// </summary>
        [SugarColumn(ColumnName = "ctlId")]        
        public string CtlId { get; set; }
        
        /// <summary>
        /// 1 代表1号门， 2代表2号门，3 代表3号门， 4代表4号门
        /// </summary>
        [SugarColumn(ColumnName = "doorNo")]        
        public int? DoorNo { get; set; }
        
        /// <summary>
        /// 号门名称
        /// </summary>
        [SugarColumn(ColumnName = "doorName")]        
        public string DoorName { get; set; }
        
        /// <summary>
        /// 开门延迟，默认3秒
        /// </summary>
        [SugarColumn(ColumnName = "doordelay")]        
        public int? Doordelay { get; set; }
        
        /// <summary>
        /// 进门，用于考勤
        /// </summary>
        [SugarColumn(ColumnName = "doorAttIn")]        
        public int? DoorAttIn { get; set; }
        
        /// <summary>
        /// 出门，用于考勤
        /// </summary>
        [SugarColumn(ColumnName = "doorAttOut")]        
        public int? DoorAttOut { get; set; }
        
        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(ColumnName = "Description")]        
        public string Description { get; set; }
        
        /// <summary>
        /// 创建用户
        /// </summary>
        [SugarColumn(ColumnName = "CreatorUserId")]        
        public string CreatorUserId { get; set; }
        
        /// <summary>
        /// 创建用户姓名
        /// </summary>
        [SugarColumn(ColumnName = "CreatorUserName")]        
        public string CreatorUserName { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreatorTime")]        
        public DateTime? CreatorTime { get; set; }
        
        /// <summary>
        /// 修改用户
        /// </summary>
        [SugarColumn(ColumnName = "LastModifyUserId")]        
        public string LastModifyUserId { get; set; }
        
        /// <summary>
        /// 修改用户姓名
        /// </summary>
        [SugarColumn(ColumnName = "LastModifyUserName")]        
        public string LastModifyUserName { get; set; }
        
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "LastModifyTime")]        
        public DateTime? LastModifyTime { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "dbDate")]        
        public DateTime? DbDate { get; set; }

        /// <summary>
        /// 所属公司Id
        /// </summary>
        [SugarColumn(ColumnName = "CompanyId")]
        public string CompanyId { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [SugarColumn(ColumnName = "CompanyName")]
        public string CompanyName { get; set; }

    }
}